#region using
using System;
using System.Collections.Generic;
#endregion

namespace DbmlManager.Lib.Database
{
  public interface IDbCreator
  {
    string ConnectionString { get; }
    string ServerName { get; set; }
    string UserId { get; set; }
    string Password { get; set; }
    string ErrorMessage { get; }

    string GetCreateDbSql(string dbname);

    bool DbExists(string dbname);
    void CreateDb(string dbname);
    void EnsureDb(string dbname);
    void EnsureNewDb(string dbname);
    void DropDb(string dbname);
    void DropDbIfExists(string dbname);
    bool TestConnection();
    List<string> GetDatabases();
    List<string> GetDatabases(bool includeSysDbs);
  }
}
